package com.codeworker.validationdemo.bean;

import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;

/**
 * Description: 分页组件
 *
 * @author code-worker
 * @date 2021/09/26 22:17
 */
@Data
public class Page<T> {
    @Valid
    @NotNull(message = "分页数据不能为空")
    private T data;
    private Integer pageNum;
    private Integer pageSize;
}
